"""
演示常用的内置方法   __str__     __lt__   __le__    __eq__
"""



class Student:
    def __init__(self,name,age):
        self.name = name
        self.age = age
    def __str__(self):
        return f"我是{self.name}, 年龄是{self.age}"
    def __lt__(self, other):
        return self.age < other.age
    def __le__(self, other):
        return self.age <= other.age

stu = Student("周杰伦",34)
stu1 = Student("林俊杰",34)
print(stu < stu1)
print(stu <= stu1)





